﻿<%@ Page EnableEventValidation="false" Title="" culture="auto" UICulture="auto" Language="C#" MasterPageFile="~/Header.Master" AutoEventWireup="true" CodeBehind="EditProfile.aspx.cs" Inherits="geekmeet.EditProfile" meta:resourcekey="PageResource1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.bgiframe-2.1.2.js" type="text/javascript"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js" type="text/javascript"></script>
    <script src="../Scripts/geekmeet.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="mainWrapper">

 <asp:SiteMapPath ID="SiteMapPath1" runat="server" CssClass="breadcrumbs" 
        ParentLevelsDisplayed="1">

        </asp:SiteMapPath>
        <h1>
            <asp:Label ID="RedigeraProfilRubrik" runat="server" 
                meta:resourcekey="RedigeraProfilRubrikResource1" CssClass="pageHeader"></asp:Label>
    </h1>
    <div id="uploadPictureContainer">
        <h2 class="headerBanner">Profilbild</h2><div id="UploadPictureFrame">


            <asp:Image ID="imgProfilePicture" runat="server" 
            Height="120px" Width="100px" 
            meta:resourcekey="imgProfilePictureResource1" /></div>
        
    <div id="UploadPictureControl">
        <asp:FileUpload ID="UploadProfilepicture" runat="server" 
            Height="38px" meta:resourcekey="FileUpload1Resource1" /><br />
            <asp:Button ID="BtnSavePicture" runat="server" Text="Spara" 
            onclick="BtnSavePicture_Click" meta:resourcekey="Button1Resource1" />
    <br />
        <asp:Label ID="LblFileErrorMessage" runat="server" Text="" CssClass="errorText"></asp:Label>
    
    </div>
        
        
        
    </div>

    <div id="EditUserData">
    <table id="tblEditUserData">
   <tr>
    <td>
        <asp:Label ID="LblFirstName" runat="server" 
            meta:resourcekey="LblFirstNameResource1"></asp:Label>
        </td>
    <td>
        <asp:TextBox ID="txtFirstName" runat="server" EnableViewState="False" 
            MaxLength="30"></asp:TextBox>
        <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
            ErrorMessage="Endast bokstäver" ForeColor="Red" 
            ValidationExpression="[aA-öÖ]{2,}" ControlToValidate="txtFirstName" 
            meta:resourcekey="RegularExpressionValidator3Resource1"></asp:RegularExpressionValidator>
        
       </td>
   </tr>
   <tr>
    <td>
        <asp:Label ID="LblLastName" runat="server" 
            meta:resourcekey="LblLastNameResource1"></asp:Label></td>
    <td>
        <asp:TextBox ID="txtLastName" runat="server" EnableViewState="False" 
            ViewStateMode="Disabled" MaxLength="30"></asp:TextBox>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
            ErrorMessage="Endast bokstäver" ForeColor="Red" 
            ValidationExpression="[aA-öÖ]{0,}" ControlToValidate="txtLastName" 
            meta:resourcekey="RegularExpressionValidator2Resource1"></asp:RegularExpressionValidator>
        
       </td>
   </tr>
   <tr>
        <td>
              <asp:Label ID="lblGender" runat="server" 
            meta:resourcekey="lblGender"></asp:Label>
        </td>
           
        <td>
             <asp:DropDownList ID="ddlGender" runat="server" AppendDataBoundItems="True" 
              meta:resourcekey="ddlGenderResource1">
              <asp:ListItem meta:resourcekey="lstGenderMale" Value="m"></asp:ListItem>
              <asp:ListItem meta:resourcekey="lstGenderFemale" Value="f"></asp:ListItem>
          </asp:DropDownList>
        </td>
   </tr>

      <tr>
    <td>
        <asp:Label ID="LblCountry" runat="server" 
            meta:resourcekey="LblCountryResource1"></asp:Label></td>
    <td>
        
          <asp:DropDownList ID="ddlCountries" runat="server" AppendDataBoundItems="True" 
              meta:resourcekey="ddlCountriesResource1">
              <asp:ListItem meta:resourcekey="ListItemResource1">Inget land valt</asp:ListItem>
          </asp:DropDownList>
        
          </td></tr>
         <tr>
    <td>
        <asp:Label ID="LblCity" runat="server" Text="Label" 
            meta:resourcekey="LblCityResource1"></asp:Label></td>
    <td>
        
        <asp:TextBox ID="txtCity" runat="server" CausesValidation="True" MaxLength="50"></asp:TextBox>
        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
            ErrorMessage="Endast bokstäver" ForeColor="Red" 
            ValidationExpression="[aA-öÖ]{2,}" ControlToValidate="txtCity" 
            meta:resourcekey="RegularExpressionValidator1Resource1"></asp:RegularExpressionValidator>
        
       </td>
   </tr>
   <tr>
    <td>
        <asp:Label ID="LblBirthDate" runat="server" Text="Label" 
            meta:resourcekey="LblBirthDateResource1"></asp:Label></td>
    <td>
        <asp:DropDownList ID="ddlYear" runat="server" 
            meta:resourcekey="ddlYearResource1">
        </asp:DropDownList>
        <asp:DropDownList ID="ddlMonth" runat="server" 
            meta:resourcekey="ddlMonthResource1">
        </asp:DropDownList>
        <asp:DropDownList ID="ddlDay" runat="server" meta:resourcekey="ddlDayResource1">
        </asp:DropDownList>
       </td>
   </tr>
   <tr>
   <td colspan="2">
    
       </td>
   </tr>
   
   </table>
     <div id="interestsSection">
   <input type="hidden" name="hidden_selectedInterests" id="hidden_selectedInterests" value="" />
       <h2 class="headerBanner">Välj intressen</h2>
           <br />
           <asp:DropDownList ID="ddlAvailableInterests" runat="server" 
           Width="194px" 
           meta:resourcekey="ddlAvailableInterestsResource1">
       </asp:DropDownList><img id="addInterestIcon" src="../images/icons/add-icon.png" 
             onclick="addInterest()" />
       <br />
           <div id="interestsContainer">
             <!--  <div class="interestItem" id="interestItem">         
                  fds <img src='images/icons/cross.png' class='interestCrossIcon' id='interestCrossIcon' /></div> 
              <div class="interestItem" id="Div1">         
                 fdsfdsfdsffds <img src='images/icons/cross.png' class='interestCrossIcon' id='Img1' /></div>-->
               </div>
     
       
       </div> 
    

    <div id="EditProfileText">
    <asp:Label ID="lblProfileText" runat="server" Text="Personlig text" 
            meta:resourcekey="lblProfileTextResource1"></asp:Label>
    <br />
    <asp:TextBox ID="txtProfileText" runat="server" Height="146px" TextMode="MultiLine" 
            Width="380px"></asp:TextBox>
    </div>
     <asp:Button ID="btnSubmit" runat="server" Text="Spara" onclick="btnSubmit_Click" 
            meta:resourcekey="btnSubmitResource1" />
        <asp:Label ID="LblErrorSaveProfile" runat="server"></asp:Label>
        </div>
    
    </div>
</asp:Content>
